import ajax from './index'


export function taoke_list(condition) {
    if(!condition) {
        condition = {
            pageNum: 1,
            pageSize: 100
        }
    }
    return ajax({
        url: "/backend/taoke",
        method: "get",
        params: condition
    });
}
export function taoke_fav_list() {
    return ajax({
        url: "/backend/taoke/favList",
        method: "get"
    });
}
export function taoke_material_cat_list() {
    return ajax({
        url: "/backend/taoke/materialCat",
        method: "get"
    });
}
export function taoke_material_list(id) {
    return ajax({
        url: "/backend/taoke/material/" + id,
        method: "get"
    });
}